!!!
%html
  %head
    %title RUnBlog
    = stylesheet_link_tag :application
    = javascript_include_tag :defaults
    = csrf_meta_tag
  %body
    %div.site_container
      %div.top_bar
        %h1 RUnBlog
        %span.user_info
          - if current_user
            %p= link_to(current_user, edit_user_registration_path)
            %p= link_to('Выйти', destroy_user_session_path)
            - else
            %p= link_to('Войти', new_user_session_path)
        %ul.main_menu
          %li= link_to('Записки', blog_posts_path)
          %li= link_to('Темы', topics_path)
      %table.site_body
        %tr
          - if !@hide_left_bar
            %td.left_bar
              = yield :left_bar
          %td.content
            %p.notice
              = notice
            %p.alert
              = alert
            = yield
          - if @right_bar_helper
            %td.right_bar
              = @right_bar_helper
